<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<h:form id="formMenuPrincipal">
	
    <p:growl id="messages"/>
 
    <p:menubar>
    	<p:submenu label="Serviços" icon="ui-icon-pencil">
    		<p:menuitem value="Agenda" url="/pages/protected/agenda.jsf" />
    		<p:menuitem value="Venda de Produto" url="/pages/protected/vendaProduto.jsf" />
    	</p:submenu>
        <p:submenu label="Cadastro" icon="ui-icon-document">
            <p:menuitem value="Marca" url="/pages/protected/cadastroMarca.jsf" />
            <p:menuitem value="Produto" url="/pages/protected/cadastroProduto.jsf" />
            <p:menuitem value="Serviço" url="/pages/protected/cadastroServico.jsf" />
            <p:menuitem value="Fornecedor" url="/pages/protected/cadastroFornecedor.jsf" />
            <p:menuitem value="Funcionário" url="/pages/protected/cadastroFuncionario.jsf" />
            <p:menuitem value="Cliente" url="/pages/protected/cadastroCliente.jsf" />
        </p:submenu>
        
        <p:submenu label="Caixa" icon="ui-icon-gear">
            <p:menuitem value="Caixa" url="/pages/protected/caixaMovimento.jsf" />
            <p:menuitem value="Pagamento" url="/pages/protected/pagamento.jsf" />
        </p:submenu>        
 
        <p:submenu label="Relatórios" icon="ui-icon-gear">
            <p:menuitem value=" Gerar Relatórios" url="/pages/protected/imprimirRelatorios.jsf" />
        </p:submenu>
 
        <f:facet name="options">
			<p:outputLabel value="#{loginMB.usuario}" 
			               styleClass="usuarioLogado" />
			<p:spacer width="20" height="0" />
			<p:commandButton value="Sair" 
                                immediate="true"
                            	 action="#{loginMB.logOut()}"
                            	 icon="ui-icon-extlink" />			
        </f:facet>
    </p:menubar>
	</h:form>
				
</html>				